package com.thread.thread3;

import java.util.concurrent.Callable;
import java.util.concurrent.TimeUnit;

/**
 * @author : leimingchao
 * @date Date : 2021年11月30日 20:08
 */
public class Thread03 implements Callable<String> {

    @Override
    public String call() throws Exception {
        try {
            System.out.println("Callable开始运行");
            TimeUnit.SECONDS.sleep(3);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("Callable运行结束");
        return "OK";
    }
}
